
    
<div id="main">

	<div class="banner_box">
        <div class="banner">
            {foreach $hm_news_adlist as $key=>$value}
					<div id="news-{$key}">
					<a href="{$value['url']}"><img src="admin/{$value['picture']}" alt="{$value['adname']}"></a>
					</div>
				{/foreach}
        </div><!--banner-->
    </div>
    
    
    
    <div class="main_box">
    	
        
        <div class="newsbox">
        	<div class="main_left">
			    {if !$newstitle}
				    <h2>{$hm_newslist[0]['newstitle']}</h2>
				{else}
					<h2>{$newstitle}</h2>
				{/if}
				
				{foreach $hm_newslist as $key=>$value}
					    {if $value['newstitle'] == $newstitle}
						     <p>{$value['content']}</p>
						{else}
						     <p>{$hm_newslist[0]['content']}</p>
						{/if}
				{/foreach}
            </div>
            <div class="main_right">
            	<div class="right_list">
                    <h3>{gprop("news")}</h3>
                    <ul id="news-{$i}" class="list">
					    {foreach $hm_newslist as $key=>$value}
						    <li><a href="{$url}&mod=news&newstitle={$value['newstitle']}&newid={$value['id']}">{$value['newstitle']}</a></li>
						{/foreach}
                    </ul>
					<div class="pages">
					
						<ul>
							<li id="bn_pre"><a href="{$pagenums['url']}&pnpn={$pagenums['currentpage']-1}">{gprop("previous")}</a></li>
							{foreach $pagenums['pages'] as $k=>$v}
							<li{if $v==$pagenums['currentpage']} class="current"{/if}><a href="{$pagenums['url']}&pnpn={$v}">{$v}</a></li>
							{/foreach}
							<li>...</li>
							<li><a href="{$pagenums['url']}&pnpn={$pagenums['totalpage']}">{$pagenums['totalpage']}</a></li>
							<li id="bn_next"><a href="{$pagenums['url']}&pnpn={$pagenums['currentpage']+1}">{gprop("next")}</a></li>
						</ul>
					
				    </div>	
					
                </div>
                
            </div>
        </div>
        
        
    </div>

    

</div><!--#main-->

